//在主函数中从键盘接收X, Y , Z3个数，编写函数计算这3个数的立方和并返回计算结果：S=X3+Y3+Z3

import java.util.Scanner;

public class lifanghe {
    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);
        System.out.println("请输入x的数：");
        int x = a.nextInt();
        Scanner b = new Scanner(System.in);
        System.out.println("请输入y的数");
        int y = b.nextInt();
        Scanner c = new Scanner(System.in);
        System.out.println("请输入z的数：");
        int z = c.nextInt();
        System.out.println(function(x,y,z));
        }





    static int function(int X, int Y, int Z)
    { int e = X*X*X+Y*Y*Y+Z*Z*Z;
        return e;
    }
}
